package entity

import ()

type BatteryType struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	Name string `gorm:"column:name;type:VARCHAR(255)" json:"name"`

	Version string `gorm:"column:version;type:VARCHAR(255)" json:"version"`

	Voltage string `gorm:"column:voltage;type:VARCHAR(255)" json:"voltage"`

	Type int `gorm:"column:type;type:TINYINT" json:"type"`

	Supplier string `gorm:"column:supplier;type:VARCHAR(255)" json:"supplier"`

	Capacity string `gorm:"column:capacity;type:VARCHAR(255)" json:"capacity"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *BatteryType) TableName() string {
	return "battery_types"
}
